<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>账户</title>
</head>
<body>
<div class="pageheader">
    <h2>修改密码</h2>
</div>
<div class="contentpanel">
    <div class="panel panel-default">
        <form:form action="${contextPath}/admin/user/edit_change_password" method="post"
                   commandName="formDto"
                   cssClass="form-horizontal form-bordered">
            <div class="form-group">
                <label class="col-sm-3 control-label">旧密码</label>

                <div class="col-sm-6">
                    <form:password path="oldPassword" cssClass="form-control" rows="3" placeholder="请输入旧密码"/>
                    <form:errors path="oldPassword" cssClass="error text-danger"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">新密码</label>

                <div class="col-sm-6">
                    <form:password path="newPassword" cssClass="form-control" rows="3" placeholder="请输入新密码"/>
                    <form:errors path="newPassword" cssClass="error text-danger"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">确认密码</label>

                <div class="col-sm-6">
                    <form:password path="confirmPassword" cssClass="form-control" rows="3" placeholder="请输入确认密码"/>
                    <form:errors path="confirmPassword" cssClass="error text-danger"/>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label"></label>

                <div class="col-sm-6">
                    <button type="submit" class="btn btn-primary">提交</button>
                    <a href="javascript:window.history.go(-1);" class="btn btn-default">取消</a>
                </div>
            </div>
        </form:form>
    </div>

</div>

</body>
</html>
